package org.ekstrabilet.stadium.beans;

/**
 * 
 * @author Maciej Koch
 *
 */
public class Stadium extends PhysicalObject{
	
	private String name;
	private String city;

	private Tribune[] tribunes = new Tribune[4];
	
	private int capacity;
	
	public int getCapacity() {
		return capacity;
	}

	public void setCapacity(int capacity) {
		this.capacity = capacity;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public Tribune[] getTribunes() {
		return tribunes;
	}

	public void setTribunes(Tribune[] tribunes) {
		this.tribunes = tribunes;
	}
	public Tribune getTribune(int i) {
		if(i < 0 || i >= 4)
			return null;
		return tribunes[i];
	}

	public void setTribune(Tribune t, int i) {
		if(i < 0 || i >= 4)
			return;
		this.tribunes[i] = t;
	}
	
	
}
